#include "BasicShape.h"

Shape::Shape() {}
Shape::~Shape() {}
void Shape::setPosition(QPointF* point) {
	this->position->setX(point->x());
	this->position->setY(point->y());
}
QPointF* Shape::getPosition() {
	return this->position;
}

void Shape::setAngle(double a) {
	this->angle = a;
}
double Shape::getAngle() {
	this->angle;
	return this->angle;
};
GLfloat* Shape::getVertex() {
	return this->vertex;
}
int Shape::getVertexSize() {
	return vertexSize;
}
RectangleShape::RectangleShape(float width, float height) {
	this->width = width;
	this->height = height;
	this->setVertexSize(12);
	this->setVertex(new GLfloat[12]);
}

RectangleShape::~RectangleShape() {}

GLfloat* RectangleShape::getVertex() {
	return this->vertex;
}
